import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
       Shape triangle=new Triangle();
       Shape cycle=new Cycle();
       Shape rect=new Rect();
       Shape[] str={rect,rect,cycle,triangle,triangle};
       for(int i=0;i<str.length;i++){
           draw(str[i]);
       }
    }
    public static void draw(Shape shape){
        shape.drawMap();
    }
}